
package Forms;

import Classes.*;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

/**
 * author: Pauline Joy Garcia
 * 
 */
public class Edit_Student extends javax.swing.JFrame {
    static MInterface mi;
    String port;
    _Login l = new _Login();
    
    ArrayList<Object> StuNo;
    ArrayList<Object> cbl1;
    ArrayList<Object> cbl2;
    ArrayList<SchoolYear> syL;
    ArrayList<Curriculum> currL;
    ArrayList<ClassLevel> clevelL;
    Student sID;
    Requirement reqEdit;
 //   static Profile_Manage pm;
    static String vp;
    static Student s;
    static User cUser;
    static _UAdmin ad;
    static String ch;
    
    public Edit_Student(MInterface i, String choice, Student st, _UAdmin uad) {               
        initComponents();        
        this.setLocationRelativeTo(getRootPane());
        mi = i;
        ch = choice;
        ad = uad;
        s = st;
        port = l.serverAdd;       
        
        try{ 
//            s = (Student) mi.get("get-student", s.getStuID(), null);
//                IDNoT.setText(s.getStuID());
//                currCB.setSelectedItem(s.getCurriculum());
//                syCb.setSelectedItem(s.getSchoolYear());
//                clvlCb.setSelectedItem(s.getClassLevel());
//                lNameT.setText(s.getLName());
//                gNameT.setText(s.getGName());
//                mNameT.setText(s.getMNane());
//                cAddT.setText(s.getCAddress());
//                ((JTextField)bdate.getDateEditor().getUiComponent()).setText(s.getBirthday());
//                bPlaceT.setText(s.getBirthPlace());
//                genderCB.setSelectedItem(s.getGender());
//                cAffT.setText(s.getChurchAffiliate());
//                cNoT.setText(s.getContact());
//                faNameT.setText(s.getFatherName());
//                faOccuT.setText(s.getFatherOccupation());
//                faCNoT.setText(s.getFatherContact());
//                moNameT.setText(s.getMotherName());
//                moOccuT.setText(s.getMotherOccupation());
//                moCNoT.setText(s.getMotherContact());
//                lSchlT.setText(s.getLastSchoolAttended());
//                lSchlAddT.setText(s.getLastSchoolAddres());
//                origClvl.setSelectedItem(s.getClassLevel());
//                genAveT.setText(s.getGeneralAverage()); 
                
            ArrayList<String> listCurr = (ArrayList<String>) mi.getList("getlist-currCb").clone();
            for (int x = 0; x < listCurr.size(); x++) {
                currCB.addItem(listCurr.get(x));
            }            
            
            loadClevel(); 

            ArrayList<String> listsy = (ArrayList<String>) mi.getList("getlist-sylist").clone();
            for(int x = 0; x < listsy.size(); x++) {
                syCb.addItem(listsy.get(x));                    
            }          
        } catch (Exception e) {
            e.printStackTrace();
        }
                
    }    

    
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        bannerL = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jPanel1 = new javax.swing.JPanel();
        IDNoL = new javax.swing.JLabel();
        IDNoT = new javax.swing.JTextField();
        curriculumL = new javax.swing.JLabel();
        currCB = new javax.swing.JComboBox();
        schl = new javax.swing.JLabel();
        lastYearLevelL1 = new javax.swing.JLabel();
        clvlCb = new javax.swing.JComboBox();
        picB = new javax.swing.JButton();
        fNameL = new javax.swing.JLabel();
        lNameT = new javax.swing.JTextField();
        gNameL = new javax.swing.JLabel();
        gNameT = new javax.swing.JTextField();
        mNameL = new javax.swing.JLabel();
        mNameT = new javax.swing.JTextField();
        SAddressL = new javax.swing.JLabel();
        cAddT = new javax.swing.JTextField();
        birthdateL = new javax.swing.JLabel();
        bdate = new com.toedter.calendar.JDateChooser();
        birthplaceL = new javax.swing.JLabel();
        bPlaceT = new javax.swing.JTextField();
        genderL = new javax.swing.JLabel();
        genderCB = new javax.swing.JComboBox();
        cAffiliationL = new javax.swing.JLabel();
        cAffT = new javax.swing.JTextField();
        SContactNoL = new javax.swing.JLabel();
        cNoT = new javax.swing.JTextField();
        middleSeparator = new javax.swing.JSeparator();
        faNameL = new javax.swing.JLabel();
        faNameT = new javax.swing.JTextField();
        faOccupationL = new javax.swing.JLabel();
        faOccuT = new javax.swing.JTextField();
        faContactNoL = new javax.swing.JLabel();
        faCNoT = new javax.swing.JTextField();
        moNameL = new javax.swing.JLabel();
        moNameT = new javax.swing.JTextField();
        faOccupationL1 = new javax.swing.JLabel();
        moOccuT = new javax.swing.JTextField();
        faContactNoL1 = new javax.swing.JLabel();
        moCNoT = new javax.swing.JTextField();
        middleSeparator1 = new javax.swing.JSeparator();
        lastSchoolL = new javax.swing.JLabel();
        lSchlT = new javax.swing.JTextField();
        lastYearLevelL = new javax.swing.JLabel();
        origClvl = new javax.swing.JComboBox();
        lastSchoolAddressL = new javax.swing.JLabel();
        lSchlAddT = new javax.swing.JTextField();
        GenAveL = new javax.swing.JLabel();
        genAveT = new javax.swing.JTextField();
        bottomSeparator = new javax.swing.JSeparator();
        syCb = new javax.swing.JComboBox();
        saveB = new javax.swing.JButton();
        backB = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Student Profile(Add/Edit)");
        setFocusCycleRoot(false);

        bannerL.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Resources/banner.jpg"))); // NOI18N
        bannerL.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        bannerL.setName("bannerL"); // NOI18N

        jSeparator2.setForeground(new java.awt.Color(0, 0, 0));
        jSeparator2.setName("jSeparator2"); // NOI18N

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setName("jPanel1"); // NOI18N

        IDNoL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        IDNoL.setText("* I.D. Number:");
        IDNoL.setName("IDNoL"); // NOI18N

        IDNoT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        IDNoT.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        IDNoT.setEnabled(false);
        IDNoT.setName("IDNoT"); // NOI18N
        IDNoT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                IDNoTKeyTyped(evt);
            }
        });

        curriculumL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        curriculumL.setText("Curriculum:");
        curriculumL.setName("curriculumL"); // NOI18N

        currCB.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        currCB.setEditor(null);
        currCB.setEnabled(false);
        currCB.setKeySelectionManager(null);
        currCB.setName("currCB"); // NOI18N
        currCB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                currCBActionPerformed(evt);
            }
        });

        schl.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        schl.setText("School Year:");
        schl.setName("schl"); // NOI18N

        lastYearLevelL1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lastYearLevelL1.setText("Admitted To:");
        lastYearLevelL1.setName("lastYearLevelL1"); // NOI18N

        clvlCb.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        clvlCb.setEditor(null);
        clvlCb.setEnabled(false);
        clvlCb.setKeySelectionManager(null);
        clvlCb.setName("clvlCb"); // NOI18N
        clvlCb.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clvlCbActionPerformed(evt);
            }
        });

        picB.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        picB.setText("View Picture");
        picB.setName("picB"); // NOI18N
        picB.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                picBMouseClicked(evt);
            }
        });
        picB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                picBActionPerformed(evt);
            }
        });

        fNameL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        fNameL.setText("* Family Name:");
        fNameL.setName("fNameL"); // NOI18N

        lNameT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lNameT.setDisabledTextColor(java.awt.Color.black);
        lNameT.setEnabled(false);
        lNameT.setName("lNameT"); // NOI18N
        lNameT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                lNameTKeyTyped(evt);
            }
        });

        gNameL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        gNameL.setText("* Given Name:");
        gNameL.setName("gNameL"); // NOI18N

        gNameT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        gNameT.setDisabledTextColor(java.awt.Color.black);
        gNameT.setEnabled(false);
        gNameT.setName("gNameT"); // NOI18N
        gNameT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                gNameTKeyTyped(evt);
            }
        });

        mNameL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        mNameL.setText("* Middle Name:");
        mNameL.setName("mNameL"); // NOI18N

        mNameT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        mNameT.setDisabledTextColor(java.awt.Color.black);
        mNameT.setEnabled(false);
        mNameT.setName("mNameT"); // NOI18N
        mNameT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                mNameTKeyTyped(evt);
            }
        });

        SAddressL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        SAddressL.setText("Address:");
        SAddressL.setName("SAddressL"); // NOI18N

        cAddT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cAddT.setDisabledTextColor(java.awt.Color.black);
        cAddT.setEnabled(false);
        cAddT.setName("cAddT"); // NOI18N
        cAddT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                cAddTKeyTyped(evt);
            }
        });

        birthdateL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        birthdateL.setText("* Birthdate:");
        birthdateL.setName("birthdateL"); // NOI18N

        bdate.setDateFormatString("yyyy-MM-dd");
        bdate.setEnabled(false);
        bdate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        bdate.setName("bdate"); // NOI18N

        birthplaceL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        birthplaceL.setText("Birthplace:");
        birthplaceL.setName("birthplaceL"); // NOI18N

        bPlaceT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        bPlaceT.setDisabledTextColor(java.awt.Color.black);
        bPlaceT.setEnabled(false);
        bPlaceT.setName("bPlaceT"); // NOI18N
        bPlaceT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                bPlaceTKeyTyped(evt);
            }
        });

        genderL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        genderL.setText("Gender:");
        genderL.setName("genderL"); // NOI18N

        genderCB.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        genderCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Male", "Female" }));
        genderCB.setEditor(null);
        genderCB.setEnabled(false);
        genderCB.setKeySelectionManager(null);
        genderCB.setName("genderCB"); // NOI18N

        cAffiliationL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        cAffiliationL.setText("Church Affiliation:");
        cAffiliationL.setName("cAffiliationL"); // NOI18N

        cAffT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cAffT.setDisabledTextColor(java.awt.Color.black);
        cAffT.setEnabled(false);
        cAffT.setName("cAffT"); // NOI18N
        cAffT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                cAffTKeyTyped(evt);
            }
        });

        SContactNoL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        SContactNoL.setText("Contact No:");
        SContactNoL.setName("SContactNoL"); // NOI18N

        cNoT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cNoT.setDisabledTextColor(java.awt.Color.black);
        cNoT.setEnabled(false);
        cNoT.setName("cNoT"); // NOI18N
        cNoT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                cNoTKeyTyped(evt);
            }
        });

        middleSeparator.setForeground(new java.awt.Color(153, 153, 153));
        middleSeparator.setName("middleSeparator"); // NOI18N

        faNameL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        faNameL.setText("* Father's Name:");
        faNameL.setName("faNameL"); // NOI18N

        faNameT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        faNameT.setDisabledTextColor(java.awt.Color.black);
        faNameT.setEnabled(false);
        faNameT.setName("faNameT"); // NOI18N
        faNameT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                faNameTKeyTyped(evt);
            }
        });

        faOccupationL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        faOccupationL.setText("Occupation:");
        faOccupationL.setName("faOccupationL"); // NOI18N

        faOccuT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        faOccuT.setDisabledTextColor(java.awt.Color.black);
        faOccuT.setEnabled(false);
        faOccuT.setName("faOccuT"); // NOI18N
        faOccuT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                faOccuTKeyTyped(evt);
            }
        });

        faContactNoL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        faContactNoL.setText("* Contact No:");
        faContactNoL.setName("faContactNoL"); // NOI18N

        faCNoT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        faCNoT.setDisabledTextColor(java.awt.Color.black);
        faCNoT.setEnabled(false);
        faCNoT.setName("faCNoT"); // NOI18N
        faCNoT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                faCNoTKeyTyped(evt);
            }
        });

        moNameL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        moNameL.setText("* Mother's Maiden Name:");
        moNameL.setName("moNameL"); // NOI18N

        moNameT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        moNameT.setDisabledTextColor(java.awt.Color.black);
        moNameT.setEnabled(false);
        moNameT.setName("moNameT"); // NOI18N
        moNameT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                moNameTKeyTyped(evt);
            }
        });

        faOccupationL1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        faOccupationL1.setText("Occupation:");
        faOccupationL1.setName("faOccupationL1"); // NOI18N

        moOccuT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        moOccuT.setDisabledTextColor(java.awt.Color.black);
        moOccuT.setEnabled(false);
        moOccuT.setName("moOccuT"); // NOI18N
        moOccuT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                moOccuTKeyTyped(evt);
            }
        });

        faContactNoL1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        faContactNoL1.setText("* Contact No:");
        faContactNoL1.setName("faContactNoL1"); // NOI18N

        moCNoT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        moCNoT.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        moCNoT.setEnabled(false);
        moCNoT.setName("moCNoT"); // NOI18N
        moCNoT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                moCNoTKeyTyped(evt);
            }
        });

        middleSeparator1.setForeground(new java.awt.Color(153, 153, 153));
        middleSeparator1.setName("middleSeparator1"); // NOI18N

        lastSchoolL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lastSchoolL.setText("Last School Attended:");
        lastSchoolL.setName("lastSchoolL"); // NOI18N

        lSchlT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lSchlT.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        lSchlT.setEnabled(false);
        lSchlT.setName("lSchlT"); // NOI18N
        lSchlT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                lSchlTKeyTyped(evt);
            }
        });

        lastYearLevelL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lastYearLevelL.setText("Class Level:");
        lastYearLevelL.setName("lastYearLevelL"); // NOI18N

        origClvl.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        origClvl.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "None" }));
        origClvl.setEditor(null);
        origClvl.setEnabled(false);
        origClvl.setKeySelectionManager(null);
        origClvl.setName("origClvl"); // NOI18N

        lastSchoolAddressL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lastSchoolAddressL.setText("Address:");
        lastSchoolAddressL.setName("lastSchoolAddressL"); // NOI18N

        lSchlAddT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lSchlAddT.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        lSchlAddT.setEnabled(false);
        lSchlAddT.setName("lSchlAddT"); // NOI18N
        lSchlAddT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                lSchlAddTKeyTyped(evt);
            }
        });

        GenAveL.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        GenAveL.setText("Gen.Ave:");
        GenAveL.setName("GenAveL"); // NOI18N

        genAveT.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        genAveT.setDisabledTextColor(new java.awt.Color(0, 0, 0));
        genAveT.setEnabled(false);
        genAveT.setName("genAveT"); // NOI18N
        genAveT.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyTyped(java.awt.event.KeyEvent evt) {
                genAveTKeyTyped(evt);
            }
        });

        bottomSeparator.setForeground(new java.awt.Color(153, 153, 153));
        bottomSeparator.setName("bottomSeparator"); // NOI18N

        syCb.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        syCb.setEnabled(false);
        syCb.setName("syCb"); // NOI18N

        saveB.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        saveB.setText("Save");
        saveB.setName("saveB"); // NOI18N
        saveB.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                saveBMouseClicked(evt);
            }
        });
        saveB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveBActionPerformed(evt);
            }
        });

        backB.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        backB.setText("Cancel");
        backB.setName("backB"); // NOI18N
        backB.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                backBMouseClicked(evt);
            }
        });

        jLabel1.setForeground(new java.awt.Color(153, 0, 0));
        jLabel1.setText("Note: It is important to fill up the fields with asterisk (*)");
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(IDNoL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(IDNoT, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(curriculumL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(currCB, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(schl)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(syCb, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(lastYearLevelL1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(clvlCb, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(picB))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(fNameL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lNameT, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(gNameL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(gNameT, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(mNameL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(mNameT, javax.swing.GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(SAddressL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cAddT, javax.swing.GroupLayout.DEFAULT_SIZE, 1155, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(birthdateL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bdate, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(birthplaceL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bPlaceT, javax.swing.GroupLayout.DEFAULT_SIZE, 855, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(genderL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(genderCB, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(cAffiliationL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cAffT, javax.swing.GroupLayout.PREFERRED_SIZE, 454, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(SContactNoL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(cNoT, javax.swing.GroupLayout.DEFAULT_SIZE, 312, Short.MAX_VALUE))
                    .addComponent(middleSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1212, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(faNameL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(faNameT, javax.swing.GroupLayout.PREFERRED_SIZE, 446, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(faOccupationL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(faOccuT, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(faContactNoL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(faCNoT, javax.swing.GroupLayout.DEFAULT_SIZE, 284, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(moNameL)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(moNameT, javax.swing.GroupLayout.PREFERRED_SIZE, 392, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(faOccupationL1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(moOccuT, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(faContactNoL1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(moCNoT, javax.swing.GroupLayout.DEFAULT_SIZE, 284, Short.MAX_VALUE))
                    .addComponent(middleSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 1212, Short.MAX_VALUE)
                    .addComponent(bottomSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1212, Short.MAX_VALUE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(lastSchoolL)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lSchlT, javax.swing.GroupLayout.PREFERRED_SIZE, 685, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(lastYearLevelL))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(lastSchoolAddressL)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(lSchlAddT, javax.swing.GroupLayout.PREFERRED_SIZE, 770, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(GenAveL)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(genAveT, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
                            .addComponent(origClvl, 0, 294, Short.MAX_VALUE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 815, Short.MAX_VALUE)
                        .addComponent(saveB)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(backB)))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(IDNoL)
                    .addComponent(IDNoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(curriculumL)
                    .addComponent(currCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(schl)
                    .addComponent(syCb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(clvlCb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lastYearLevelL1)
                    .addComponent(picB, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fNameL)
                    .addComponent(lNameT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gNameL)
                    .addComponent(gNameT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(mNameL)
                    .addComponent(mNameT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(SAddressL)
                    .addComponent(cAddT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(birthdateL)
                        .addComponent(birthplaceL)
                        .addComponent(bPlaceT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(bdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(genderL)
                    .addComponent(genderCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cAffT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cAffiliationL)
                    .addComponent(SContactNoL)
                    .addComponent(cNoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(middleSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(faContactNoL)
                        .addComponent(faCNoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(faOccupationL)
                        .addComponent(faOccuT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(faNameT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(faNameL)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(moNameT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(moNameL)
                    .addComponent(faOccupationL1)
                    .addComponent(moOccuT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(moCNoT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(faContactNoL1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(middleSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(lastSchoolL)
                    .addComponent(lSchlT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lastYearLevelL)
                    .addComponent(origClvl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lastSchoolAddressL)
                    .addComponent(lSchlAddT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(GenAveL)
                    .addComponent(genAveT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(bottomSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(backB, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(saveB, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel1))
                .addContainerGap(18, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 1246, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(bannerL, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(bannerL)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void saveBMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saveBMouseClicked
        try {
            String bd = ((JTextField)bdate.getDateEditor().getUiComponent()).getText();
            boolean add = false;
            if (!add) {                  
                if (IDNoT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter an ID Number for the student", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (lNameT.getText().isEmpty() && gNameT.getText().isEmpty() && mNameT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter a student name", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (bd.isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter the birthdate of the student", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (faNameT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter student fathers name", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (faCNoT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter fathers contact number", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (moNameT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter student mothers name", "Error", JOptionPane.ERROR_MESSAGE);
                } else if (moCNoT.getText().isEmpty()) {
                    JOptionPane.showMessageDialog(null, "Enter mothers contact number", "Error", JOptionPane.ERROR_MESSAGE);
                } else {
                    boolean existing = false;
                    ArrayList<Student> stud = (ArrayList<Student>) mi.getList("getlist-students").clone();
                    for(int x = 0; x < stud.size(); x++) {
                        if(stud.get(x).getSID().equals(IDNoT.getText())) {
                            existing = true;
                        }
                    }
                    if (!existing) {
                        sID = new Student(check(IDNoT.getText()), check(lNameT.getText()), check(gNameT.getText()), 
                            check(mNameT.getText()), check(cAddT.getText()), check(bd), check(bPlaceT.getText()), 
                            check((String)genderCB.getSelectedItem()), check(cAffT.getText()), check(cNoT.getText()), check(faNameT.getText()), 
                            check(faOccuT.getText()), check(faCNoT.getText()), check(moNameT.getText()), check(moOccuT.getText()), check(moCNoT.getText()), 
                            check(lSchlT.getText()), check(lSchlAddT.getText()), checkGenAve(), clvlCb.getSelectedItem().toString(), 
                            syCb.getSelectedItem().toString(), currCB.getSelectedItem().toString());
                        add = mi.add("add-student", sID, null, cUser);
                        JOptionPane.showMessageDialog(null, IDNoT.getText() + " Student successfully added", "Message", JOptionPane.INFORMATION_MESSAGE);                          
                        System.out.println(sID);                        
                    } else {
                        JOptionPane.showMessageDialog(null, "ID Number already exist", "Error", JOptionPane.ERROR_MESSAGE);
                    }
                }      
            } 
        } catch (Exception e) {
            e.printStackTrace();            
        }
}//GEN-LAST:event_saveBMouseClicked
    
    public String check(String a) {
        if(a.equals("")) {
            return "N/A";
        }
        return a;
    }
    
    public String checkGenAve() {
        if(genAveT.getText().equals("")) {
            return "0";
        }
        return genAveT.getText();
    }
    
    public String Digit(int d) {
        String res = null;
        if (d < 10) {
            res = ("0" + d);
        } else {
            res = ("" + d);
        }
        return res;
    }          
    
    
    
//    public String status() {
//        String stat = null;
//        if(OKEnrollmentRB.isSelected()) {
//            stat = OKEnrollmentRB.getText();
//        }
//        
//        if(retainRB.isSelected()) {
//            stat = retainRB.getText();
//        }
//        
//        if(acceleratedRB.isSelected()) {
//            stat = acceleratedRB.getText();
//        }
//        
//        if(deceleratedRB.isSelected()) {
//            stat = deceleratedRB.getText();
//        }
//        return stat;
//    }
    
    private void backBMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_backBMouseClicked
        this.setVisible(false);
    }//GEN-LAST:event_backBMouseClicked

    private void currCBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_currCBActionPerformed
        loadClevel();
    }//GEN-LAST:event_currCBActionPerformed

    private void IDNoTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_IDNoTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
        String x ="-";
    
        if(c == KeyEvent.VK_SPACE) {
            if(IDNoT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }   
        }
        
        String s = "!@#$%^&*()+=~`|/?.-_>,<][}{;:\'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER || c == KeyEvent.VK_SPACE) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    }//GEN-LAST:event_IDNoTKeyTyped

    private void lNameTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_lNameTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(lNameT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@#$%^&*()+=~`|/?.>,<][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
        
        
    }//GEN-LAST:event_lNameTKeyTyped

    private void gNameTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_gNameTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(gNameT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@#$%^&*()+=~`|/?.>,<][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    }//GEN-LAST:event_gNameTKeyTyped

    private void cAddTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cAddTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(cAddT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        
        String s = "!@$%^&*()+=~`|/?><][}{;:\'\"";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
//        if (!Character.isLetter(c) && c != KeyEvent.VK_SPACE && c != KeyEvent.VK_BACK_SPACE && !Character.isDigit(c)){
//            evt.consume();
//            JOptionPane.showMessageDialog (null, "Please enter allowed characters.", "Error", JOptionPane.ERROR_MESSAGE);
//        }
    }//GEN-LAST:event_cAddTKeyTyped

    private void bPlaceTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_bPlaceTKeyTyped
        // TODO add your handling code here:
//        String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(bPlaceT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|/?><][}{;:\'\"";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    }//GEN-LAST:event_bPlaceTKeyTyped

    private void cAffTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cAffTKeyTyped
        // TODO add your handling code here:
        String s = "[a-zA-Z0-9\\._\\-]{3,}";
    char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(cAffT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        if (!Character.isLetter(c) && c != KeyEvent.VK_SPACE && c != KeyEvent.VK_BACK_SPACE){
            evt.consume();
            JOptionPane.showMessageDialog (null, "Please enter allowed characters.", "Error", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_cAffTKeyTyped

    private void faNameTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_faNameTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(faNameT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@#$%^&*()+=~`|/?>,<][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    }//GEN-LAST:event_faNameTKeyTyped

    private void moNameTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_moNameTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(moNameT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@#$%^&*()+=~`|/?>,<][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH ||  c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
    }//GEN-LAST:event_moNameTKeyTyped

    private void faOccuTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_faOccuTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(faOccuT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|?.><][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
    }//GEN-LAST:event_faOccuTKeyTyped

    private void moOccuTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_moOccuTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(moOccuT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|?.><][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
    }//GEN-LAST:event_moOccuTKeyTyped

    private void faCNoTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_faCNoTKeyTyped
        // TODO add your handling code here:
//        String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(faCNoT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        
        String s = "!@$%^&*()+=~`|/?.><][}{;:\'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
        
    
    }//GEN-LAST:event_faCNoTKeyTyped

    private void moCNoTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_moCNoTKeyTyped
        // TODO add your handling code here:
//        String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(moCNoT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|/?.><][}{;:\'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
        
    
    }//GEN-LAST:event_moCNoTKeyTyped

    private void lSchlTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_lSchlTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(lSchlT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|/?.>,<][}{;:\'\"";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
    }//GEN-LAST:event_lSchlTKeyTyped

    private void lSchlAddTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_lSchlAddTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(lSchlAddT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@$%^&*()+=~`|/?><][}{;:\'\"";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
    }//GEN-LAST:event_lSchlAddTKeyTyped

    private void genAveTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_genAveTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(genAveT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        
        //char c = evt.getKeyChar();
    
                
        String s = "!@$%^&*()+=~`|/?> <][}{;:\'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    
        
    
    }//GEN-LAST:event_genAveTKeyTyped

    private void mNameTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_mNameTKeyTyped
        // TODO add your handling code here:
        //String s = "[a-zA-Z0-9\\._\\-]{3,}";
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(lNameT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
    
        String s = "!@#$%^&*()+=~`|/?.>,<][}{;:\'\"1234567890";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
    }//GEN-LAST:event_mNameTKeyTyped

    private void cNoTKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_cNoTKeyTyped
        // TODO add your handling code here:
        char c = evt.getKeyChar();
    
        if(c == KeyEvent.VK_SPACE) {
            if(faCNoT.getText().isEmpty()) {
                evt.consume();
                JOptionPane.showMessageDialog (null, "Space bar not allowed as first character.", "Error", JOptionPane.ERROR_MESSAGE);
            }
        }
        
        String s = "!@$%^&*()+=~`|/?.><][}{;:\'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          
    //char c = evt.getKeyChar();
        if (s.contains(c + "") || c == KeyEvent.VK_BACK_SLASH || c == KeyEvent.VK_ENTER) {
            if(c == KeyEvent.VK_ENTER) {
            //jButton7ActionPerformed(null);
                saveBMouseClicked(null);
                } else {
                evt.consume();
            }
        }
        
    }//GEN-LAST:event_cNoTKeyTyped

    private void picBMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_picBMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_picBMouseClicked

    private void picBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_picBActionPerformed
        new ProfilePic(mi, sID).setVisible(true);
    }//GEN-LAST:event_picBActionPerformed

    private void saveBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveBActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_saveBActionPerformed

    private void clvlCbActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clvlCbActionPerformed
        if(clvlCb.getSelectedIndex() != 0) {
            origClvl.setSelectedIndex(clvlCb.getSelectedIndex());
        }
    }//GEN-LAST:event_clvlCbActionPerformed
    
 /*   public void updateTable(String Opp) {
        try {
            if(Opp.matches("Add")) {
                saveB.setText("Save");
            }
            
            if(Opp.matches("Edit")) {
                stuEdit = (Student) mi.get("get-student", sID.getStuID(), "");
                saveB.setText("Update");
                IDNoT.setText(stuEdit.getSID());                
                IDNoT.setEnabled(false);
                currCB.setSelectedItem(stuEdit.getCurriculum());
                currCB.setEnabled(false);
                lNameT.setText(stuEdit.getLName());
                gNameT.setText(stuEdit.getGName());
                mNameT.setText(stuEdit.getMNane());
                cAddT.setText(stuEdit.getCAddress());
                bPlaceT.setText(stuEdit.getBirthPlace());
                genderCB.setSelectedItem(stuEdit.getGender());
                genderCB.setEnabled(false);
                cAffT.setText(stuEdit.getChurchAffiliate());
                cNoT.setText(stuEdit.getContact());
                faNameT.setText(stuEdit.getFatherName());
                faOccuT.setText(stuEdit.getFatherOccupation());
                faCNoT.setText(stuEdit.getFatherContact());
                moNameT.setText(stuEdit.getMotherName());
                moOccuT.setText(stuEdit.getMotherOccupation());
                moCNoT.setText(stuEdit.getMotherContact());
                lSchlT.setText(stuEdit.getLastSchoolAttended());
                lSchlAddT.setText(stuEdit.getLastSchoolAddres());
                origClvl.setSelectedItem(stuEdit.getClassLevel());
                origClvl.setEnabled(false);
                clvlCb.setEnabled(false);
                genAveT.setText(stuEdit.getGeneralAverage());                                
            }
                            
            if(Opp.matches("View")) {
                stuEdit = (Student) mi.get("get-student", sID.getStuID(), "");
                saveB.setText("Edit");                
                IDNoT.setText(stuEdit.getSID());
                IDNoT.setEnabled(false);
                currCB.setSelectedItem(stuEdit.getCurriculum());
                currCB.setEnabled(false);
                syCb.setSelectedItem(stuEdit.getSchoolYear());
                //sy.setText(stuEdit.getSchoolYear());
                clvlCb.setSelectedItem(stuEdit.getClassLevel());
                clvlCb.setEnabled(false);
                lNameT.setText(stuEdit.getLName());
                lNameT.setEnabled(false);
                gNameT.setText(stuEdit.getGName());
                gNameT.setEnabled(false);
                mNameT.setText(stuEdit.getMNane());
                mNameT.setEnabled(false);
                cAddT.setText(stuEdit.getCAddress());
                cAddT.setEnabled(false);
                ((JTextField)bdate.getDateEditor().getUiComponent()).setText(stuEdit.getBirthday());
                bdate.setEnabled(false);
                bPlaceT.setText(stuEdit.getBirthPlace());
                bPlaceT.setEnabled(false);
                genderCB.setSelectedItem(stuEdit.getGender());
                genderCB.setEnabled(false);
                cAffT.setText(stuEdit.getChurchAffiliate());
                cAffT.setEnabled(false);
                cNoT.setText(stuEdit.getContact());
                cNoT.setEnabled(false);
                faNameT.setText(stuEdit.getFatherName());
                faNameT.setEnabled(false);
                faOccuT.setText(stuEdit.getFatherOccupation());
                faOccuT.setEnabled(false);
                faCNoT.setText(stuEdit.getFatherContact());
                faCNoT.setEnabled(false);
                moNameT.setText(stuEdit.getMotherName());
                moNameT.setEnabled(false);
                moOccuT.setText(stuEdit.getMotherOccupation());
                moOccuT.setEnabled(false);
                moCNoT.setText(stuEdit.getMotherContact());
                moCNoT.setEnabled(false);
                lSchlT.setText(stuEdit.getLastSchoolAttended());
                lSchlT.setEnabled(false);
                lSchlAddT.setText(stuEdit.getLastSchoolAddres());
                lSchlAddT.setEnabled(false);
                if(clvlCb.getSelectedIndex() == 0) origClvl.setSelectedIndex(0);
                //lclevel.setSelectedItem((String) clevelL.get(lclevel.getSelectedIndex() - 1).getClassName());
                origClvl.setEnabled(false);
                genAveT.setText(stuEdit.getGeneralAverage());
                genAveT.setEnabled(false);                                
            } 
        } catch(Exception e) {
            e.printStackTrace();
        }
    
    } */
    
    public void loadClevel() {
        try {
            clvlCb.removeAllItems();
            origClvl.removeAllItems();
            clevelL = (ArrayList<ClassLevel>) mi.getList4("getlist4-level-curr", currCB.getSelectedItem().toString()).clone();
            for (int x = 0; x < clevelL.size(); x++) {
                clvlCb.addItem(clevelL.get(x).getClassName());
                origClvl.addItem(clevelL.get(x).getClassName());
            }
            
        } catch(Exception e) {
            e.printStackTrace();
        }
    }    

    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Edit_Student(mi, ch, s, ad).setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel GenAveL;
    private javax.swing.JLabel IDNoL;
    public javax.swing.JTextField IDNoT;
    private javax.swing.JLabel SAddressL;
    private javax.swing.JLabel SContactNoL;
    public javax.swing.JTextField bPlaceT;
    private javax.swing.JButton backB;
    private javax.swing.JLabel bannerL;
    public com.toedter.calendar.JDateChooser bdate;
    private javax.swing.JLabel birthdateL;
    private javax.swing.JLabel birthplaceL;
    private javax.swing.JSeparator bottomSeparator;
    private javax.swing.ButtonGroup buttonGroup1;
    public javax.swing.JTextField cAddT;
    public javax.swing.JTextField cAffT;
    private javax.swing.JLabel cAffiliationL;
    public javax.swing.JTextField cNoT;
    public javax.swing.JComboBox clvlCb;
    public javax.swing.JComboBox currCB;
    private javax.swing.JLabel curriculumL;
    private javax.swing.JLabel fNameL;
    public javax.swing.JTextField faCNoT;
    private javax.swing.JLabel faContactNoL;
    private javax.swing.JLabel faContactNoL1;
    private javax.swing.JLabel faNameL;
    public javax.swing.JTextField faNameT;
    public javax.swing.JTextField faOccuT;
    private javax.swing.JLabel faOccupationL;
    private javax.swing.JLabel faOccupationL1;
    private javax.swing.JLabel gNameL;
    public javax.swing.JTextField gNameT;
    public javax.swing.JTextField genAveT;
    public javax.swing.JComboBox genderCB;
    private javax.swing.JLabel genderL;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator2;
    public javax.swing.JTextField lNameT;
    public javax.swing.JTextField lSchlAddT;
    public javax.swing.JTextField lSchlT;
    private javax.swing.JLabel lastSchoolAddressL;
    private javax.swing.JLabel lastSchoolL;
    private javax.swing.JLabel lastYearLevelL;
    private javax.swing.JLabel lastYearLevelL1;
    private javax.swing.JLabel mNameL;
    public javax.swing.JTextField mNameT;
    private javax.swing.JSeparator middleSeparator;
    private javax.swing.JSeparator middleSeparator1;
    public javax.swing.JTextField moCNoT;
    private javax.swing.JLabel moNameL;
    public javax.swing.JTextField moNameT;
    public javax.swing.JTextField moOccuT;
    public javax.swing.JComboBox origClvl;
    private javax.swing.JButton picB;
    private javax.swing.JButton saveB;
    private javax.swing.JLabel schl;
    public javax.swing.JComboBox syCb;
    // End of variables declaration//GEN-END:variables
}
